package cn.tedu.store.commons.pojo.product.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;

/**
 * 添加图片的DTO类
 *
 * @author RelentlessFlow
 * @version 0.0.1
 */
@Data
public class PictureAddNewDTO implements Serializable {

    /**
     * 所属相册id
     */
    @ApiModelProperty(value = "相册id")
    private Long albumId;

    /**
     * URL
     */
    @ApiModelProperty(value = "url")
    private String url;

    /**
     * 简介
     */
    @ApiModelProperty(value = "简介")
    private String description;

    /**
     * 宽度，单位：px
     */
    @ApiModelProperty(value = "图片宽度，单位：px")
    private Integer width;

    /**
     * 图片高度，单位：px
     */
    @ApiModelProperty(value = "图片高度，单位：px")
    private Integer height;

    /**
     * 自定义排序序号
     */
    @ApiModelProperty(value = "排序序号")
    @Range(min = 1,max = 255,message = "必须在[1,255]区间内")
    private Integer sort;
}
